import request from '@/utils/request'

// 查询排期区域信息列表
export function listScheduleAreaInfo(query) {
  return request({
    url: '/cinema/scheduleAreaInfo/list',
    method: 'get',
    params: query
  })
}

// 查询排期区域信息详细
export function getScheduleAreaInfo(id) {
  return request({
    url: '/cinema/scheduleAreaInfo/' + id,
    method: 'get'
  })
}

// 新增排期区域信息
export function addScheduleAreaInfo(data) {
  return request({
    url: '/cinema/scheduleAreaInfo',
    method: 'post',
    data: data
  })
}

// 修改排期区域信息
export function updateScheduleAreaInfo(data) {
  return request({
    url: '/cinema/scheduleAreaInfo',
    method: 'put',
    data: data
  })
}

// 删除排期区域信息
export function delScheduleAreaInfo(id) {
  return request({
    url: '/cinema/scheduleAreaInfo/' + id,
    method: 'delete'
  })
}

// 导出排期区域信息
export function exportScheduleAreaInfo(query) {
  return request({
    url: '/cinema/scheduleAreaInfo/export',
    method: 'get',
    params: query
  })
}